package com.shop.mapper.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;

@TableName("user_token")
@Data
@ApiModel(value = "User_token对象", description = "")
public class UserToken implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * userID
     */
    private Integer userId;
    /**
     * 令牌
     */
    private String token;

    /**
     * 登陆类型 PC、Android 、IOS
     */
    private String loginType;
    /**
     * 设备信息
     */
    private String deviceInfor;
    /**
     * 状态
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer isAvailability;
    /**
     * 注册时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;
}
